/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: FeverHnTelcom
 * Author:   Administrator
 * Date:     2020/2/26 16:22
 * Description: 接口路径
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.authine.cloudpivot.web.Utils;

import com.authine.cloudpivot.web.api.vo.ZzArrVo;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 〈一句话功能简述〉<br> 
 * 〈接口路径〉
 *
 * @author Administrator
 * @create 2020/2/26
 * @since 1.0.0
 */
public class FeverHnTelcom {


    public static final  String adminId = "2c9280a26706a73a016706a93ccf002b";
    public static final  String xuserId = "2ccf3b346706a6d3016706dc51c0022b";

    public static  final  String  ferverUrl = "https://hntelcom.com/yqfz_sys/Html/data_interface/fever_person_data.jsp";

    public static final Map<String, String> symptomsMap =  new HashMap<>(36);

    static {
        setSymptomsMap();
    }

    public static List<ZzArrVo> getZzArrVoList (String val){

        if (symptomsMap.isEmpty()){
            setSymptomsMap();
        }
        ZzArrVo zzArrVo ;
        List<ZzArrVo> list = new ArrayList<>();

        if (StringUtils.isEmpty(val)){
            return list;
        }

        String[] split = val.split(";");

        String id ;
        for (String str : split) {

            id = symptomsMap.get(val);

            if (id != null ){
                zzArrVo = new ZzArrVo();
                zzArrVo.setSymptomId(id);
                zzArrVo.setSymptomName(str);

                list.add(zzArrVo);
            }

        }


        return list;
    }

    private static void setSymptomsMap(){
        symptomsMap.put("呼吸道症状","1");
        symptomsMap.put("畏寒","2");
        symptomsMap.put("乏力","3");
        symptomsMap.put("腹泻","4");
        symptomsMap.put("结膜充血","5");
        symptomsMap.put("胸闷","6");
        symptomsMap.put("咽痛","7");
        symptomsMap.put("头痛","8");
        symptomsMap.put("肌肉酸痛","9");
        symptomsMap.put("关节痛","10");
        symptomsMap.put("胃肠道症状","11");
        symptomsMap.put("精神差/嗜睡","12");
        symptomsMap.put("惊厥/抽搐","13");
        symptomsMap.put("干咳 ","14");
        symptomsMap.put("流涕","15");
        symptomsMap.put("咳嗽/咳痰","16");
        symptomsMap.put("气促","17");
        symptomsMap.put("呼吸困难","18");
        symptomsMap.put("肠胃道痛","19");
        symptomsMap.put("其他","20");



    }

    public static final String[] SysFeild = {"id","name","creater","createdDeptId","owner","ownerDeptId","createdTime","modifier","modifiedTime",
            "workflowInstanceId","sequenceNo","sequenceStatus","ownerDeptQueryCode","parentId"};


}